package com.study.ssm.awaring;

/**
 * <pre>
 *     project name: SpringStudy
 *     author      : 李琼
 *     e-mail      : 1265137718@qq.com
 *     create time : 2017/9/15 下午11:44
 *     desc        : 描述--//AutoAwaringService TODO
 *     URL         : CSDN:http://blog.csdn.net/qq_22945151
 *                   GitHub:https://github.com/a1265137718
 *     Reference   ://
 *     modifier               :
 *     modification time      :
 *     modify remarks         :
 *
 *     @version: --//TODO
 * </pre>
 */


public class AutoAwaringService {

    private AutoAwaringDao dao;

    public void setAutoAwaringDao(AutoAwaringDao dao) {
        System.out.println("调用了set方法");
        this.dao = dao;
    }
    public  AutoAwaringService( ) {
        System.out.println("调用了无参构造方法");
        this.dao = dao;
    }
    /**
     * 使用构造器进行初始化所必须的方法
     * @param dao
     */
    public AutoAwaringService(AutoAwaringDao dao) {
        System.out.println("调用了构造方法");
        this.dao = dao;
    }

    public void say(String string) {
        dao.say(string);
    }
}
